package com.dews.information.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.dews.common.utils.DateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 班级信息对象Vo
 * 
 * @author qingfeng
 * @date 2025-01-14
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ClazzInfoVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    private Integer id;

    @ApiModelProperty("学院id")
    private Long depId;

    @ApiModelProperty("学院名称")
    private String depName;

    @ApiModelProperty("专业id")
    private Integer subjectId;

    @ApiModelProperty("专业名称")
    private String subjectName;

    @ApiModelProperty("班级名称")
    private String clazzName;

    @ApiModelProperty("班级代码")
    private String clazzCode;

    @ApiModelProperty("年级")
    private String grade;

    @ApiModelProperty("学制")
    private Integer educationalSystem;

    @ApiModelProperty("班级描述")
    private String clazzDescribe;

    @ApiModelProperty("学位类型")
    private String clazzType;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @JsonFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS, timezone = DateUtils.GMT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @JsonFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS, timezone = DateUtils.GMT)
    private LocalDateTime updateTime;
}
